# # 计算 100 以内偶数之和。
# sum100 = 0
# center = 0
# while center < 100:
#     center += 1
#     if center % 2 == 1:
#         continue
#     sum100 += center
# print(sum100)


"""
5,2,6,2,7,2

"""

# frst = (x for x in range(3))
#
# print(next(frst))
# print(next(frst))
# print(next(frst))
# print(next(frst))
#
# num = 14
# a = []
# while True:
#     if num == 0:
#         break
#     elif num % 2 == 0:
#         num = num/2
#     else:
#         num = num - 1
#     a.append(1)
# print(len(a))

# a = [[2, 4, 7], [6, 2, 7]]
# for i in a[0]:
#     i += i
# print(i)

# a = [[1, 2, 3], [3, 0, 7], [0, 1, 5]]

# print(max(map(sum, a)))

# c = []
# for i in range(len(a)):
#     b = 0
#     for j in a[i]:
#         b = j + b
#     c.append(b)
# print(max(c))

# print(sum(max(a)))

# n = 16
# answer = []
# for i in range(n):
#     answer.append(i+1)
#     if (i+1) % 3 == 0 and (i+1) % 5 == 0:
#         answer[i] = 'FizzBuzz'
#     elif (i+1) % 3 == 0:
#         answer[i] = 'Fizz'
#     elif (i+1) % 5 == 0:
#         answer[i] = 'Buzz'
# print(answer)


# head = [1, 2, 3, 4, 5]
# index = len(head)//2
# a = []
# for i in head[head[index-1]:]:
#     a.append(i)
# print(a)


# ran = 'aa'
# mag = 'ab'
#
# if ran in mag:
#     print('true')
# else:
#     print('false')
